
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>

#include "sx1262/sx126x-hal.h"

bool LoRA_Open(IRQ_CALLBACK irq);
void LoRA_Close();

bool LoRA_Write(const uint8_t* data, uint8_t datasize);
bool LoRA_Read(uint8_t* data, uint8_t* datasize);
void LoRA_GetPacketStatus(int8_t* rssi, int8_t* snr);
void LoRA_StartReceive();
void LoRA_EndReceive();
uint16_t LoRA_GetIRQ();
